package br.com.rfq.model.entity;

public class ItemCatalog {
	
	private Long id;
	private String description;
	private String supplierItemCode;
	
	public ItemCatalog() {
	}
	
	public ItemCatalog(Long id, String description, String supplierItemCode) {
		this.id = id;
		this.description = description;
		this.supplierItemCode = supplierItemCode;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getSupplierItemCode() {
		return supplierItemCode;
	}

	public void setSupplierItemCode(String supplierItemCode) {
		this.supplierItemCode = supplierItemCode;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime
				* result
				+ ((supplierItemCode == null) ? 0 : supplierItemCode.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ItemCatalog other = (ItemCatalog) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (supplierItemCode == null) {
			if (other.supplierItemCode != null)
				return false;
		} else if (!supplierItemCode.equals(other.supplierItemCode))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "ItemCatalog [id=" + id + ", description=" + description
				+ ", supplierItemCode=" + supplierItemCode + "]";
	}

	
	
	
}
